﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QuanLyGiaoVuDAL.DTO
{
    public class GiangVienDTO
    {
        public System.Guid ID { get; set; }
        public string MaGiangVien { get; set; }
        public string HoTenGV { get; set; }
        public int GioiTinh { get; set; }
        public System.DateTime? NgaySinh { get; set; }
        public DateTime NgayVaoCongTac { get; set; }
        public int MaHocVi { get; set; }
        public System.Nullable<int> MaHocHam { get; set; }
        public Guid? MaChucDanh { get; set; }
        public string DiaChi { get; set; }
        public string SoDienThoai { get; set; }
        public string Email { get; set; }
        public HocViDTO HocVi { get; set; }
        public HocHamDTO HocHam { get; set; }
        public IEnumerable<ChucVuDTO> ChucVu { get; set; }
        public ChucDanhDTO ChucDanh { get; set; }
        public BoMonDTO BoMon { get; set; }
        public bool ThinhGiang { get; set; }
        public int? MaBoMon { get; set; }
        public bool DaXoa { get; set; }

        public String GetTenVaHocVi()
        {
            String result = string.Empty;
            if (MaHocHam != null && MaHocHam != -1)
                result = result + HocHam.VietTat + ". ";
            result = result + HocVi.VietTat + ". " + HoTenGV;
            return result;
        }
    }
}
